home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Genius of Edison
/
The Genius of Edison (Version 1.0)(Softkey Multimedia)(GOE744AE-CD)(1996).ISO
/
pc
/
data
/
shared.cst
/
00064_Script_PRINTING -- PC SPECIFIC
< prev
next >
Wrap
Text File
|
1996-09-03
|
3KB
|
113 lines
-- --------------------------------------------------------------------------------------
-- Handler printScreenPC prints a screenShot of the current 13" screen
-- (640 wide by 480 tall), scaled up to fit an 11 x 8.5 inch page...
-- (not recommended for monitors/windows smaller than 640 x 480 at this time):
on printScreenPC
printFullSizePC
end
-----------------------------------------------------------------------
-- Handler printFullSizePC is called by printScreenPC to print the screen
-- full size and by printFilePC to print a file full size.
on printFullSizePC fullFileName
-- 1) open the xobject
openXObjHandler "pmatic.dll"
-- 2) create a new object
set printObj = printomatic(mnew)
if not(objectP( printObj )) then
alert "Sorry...Error in printing."
exit
end if
-- 3) call the print function to print
doPrintFullScreen(printObj, fullFileName)
-- 4) close the xojbect
closeXObjHandler "pmatic.dll"
end
-- --------------------------------------------------------------------------------------
-- Handler printFilePC
on printFilePC fullFileName
printFullSizePC(fullFileName)
end
-- ----------------------------------------------------------------
-- Handler printHelpDatabasePC is called when the user clicks the print
-- button in the database. It prints the text or picture (whichever
-- is currently displayed) of the currently selected topic.
on printHelpDatabasePC
global topicProperty
-- 1) open the xobject
openXObjHandler "pmatic.dll"
-- 2) create a new object
set printObj = printomatic(mnew)
if not(objectP( printObj )) then
alert "Sorry...Error in printing."
exit
end if
-- 3) call the print function to print
if (topicProperty = "text") then
doPrintHelpDatabaseText(printObj)
else if (topicProperty = "media") then
doPrintHelpDatabasePicture(printObj)
end if
-- 4) close the xojbect
closeXObjHandler "pmatic.dll"
end
-- -----------------------------------------------------------
-- Handler printCastPC
on printCastPC whichCast, title, caption
-- 1) open the xobject
openXObjHandler "pmatic.dll"
-- 2) create a new object
set printObj = printomatic(mnew)
if not(objectP( printObj )) then
alert "Sorry...Error in printing."
exit
end if
-- 3) call the print function to print
doPrintCast(printObj, whichCast, title, caption)
-- 4) close the xojbect
closeXObjHandler "pmatic.dll"
end
-- -----------------------------------------------------------
-- Handler printMorsePC
on printMorsePC theMorse , theText
-- 1) open the xobject
openXObjHandler "pmatic.dll"
-- 2) create a new object
set printObj = printomatic(mnew)
if not(objectP( printObj )) then
alert "Sorry...Error in printing."
exit
end if
-- 3) call the print function to print
doPrintMorse(printObj , theMorse, theText)
-- 4) close the xojbect
closeXObjHandler "pmatic.dll"
end